ViewCompat.setY(this, y);
} else {
ViewCompat.setScaleY(this, 1F);
ViewCompat.setScaleY(textView, 1F);
ViewCompat.setY(this, y);
}
}
* @param y Position to which the indicator should move.
*/
void setScroll(float y){
if(getVisibility() == VISIBLE){
y -= 75 - materialScrollBar.getIndicatorOffset() + Utils.getDP(getIndicatorHeight() / 2, this);
if(y < 5){
y = 5;
}
ViewCompat.setScaleY(this, 1F);
ViewCompat.setScaleY(textView, 1F);
ViewCompat.setY(this, y);
}
}